const str = "student is a real student";
// const newStr = str.replace(/student/g, "hahaha");
const newStr = str.replaceAll('student', "hahaha");
console.log(newStr); // hahaha is a real hahaha